package com.lxs.mall.mallseckill.dto;

import com.lxs.mall.mallseckill.vo.SkuInfoVO;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 封装sku相关的信息，保存到redis中的传输对象
 */
@Data
public class SeckillSkuRedisDto {



    private Long promotionId;
    /**
     * 活动场次id
     */
    private Long promotionSessionId;
    /**
     * 商品id
     */
    private Long skuId;
    /**
     * 秒杀价格
     */
    private BigDecimal seckillPrice;
    /**
     * 秒杀总量
     */
    private BigDecimal seckillCount;
    /**
     * 每人限购数量
     */
    private BigDecimal seckillLimit;
    /**
     * 排序
     */
    private Integer seckillSort;
    private Long startTime;
    private Long endTime;
    //随机码
    private String randCode;

    private SkuInfoVO skuInfoVO;

}
